import tnx from '@/tnx.js';

export default {
    packageName: [
        tnx.app.validator.getRule('regex', {
            pattern: '^[a-zA-Z_][a-zA-Z0-9_.]*[a-zA-Z0-9_]$',
            message: '无效的包名'
        }),
    ],
    simpleName: [
        tnx.app.validator.requiredRule,
        tnx.app.validator.getRule('regex', {
            pattern: '^[a-zA-Z_][a-zA-Z0-9_]*$',
            message: '无效的类名'
        }),
    ],
    caption: [tnx.app.validator.getRule('notContainsHtmlChars', true)],
}
